System and method for autonomous selection of routing paths in a computer network

ABSTRACT

A method for autonomous selection of a data routing path in a computer network includes: forming a pulse group comprising a plurality of nodes in a computer network, automatically sending a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group, receiving one of the plurality of pulse messages by a second node in the pulse group, automatically computing a first one-way latency for a direct path from the first node to the second node based on a first time stamp and a second time stamp, automatically recording one-way latencies between each pair of nodes in the pulse group in a one-way latency matrix, and automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix.

FIELD OF THE INVENTION

The present invention relates generally to the field of computer network, and in particular, to improving performance of data communications over computer networks such as the internet.

BACKGROUND OF THE INVENTION

The current Internet transit services are vulnerable to eavesdropping, and fail to route around partially degraded networks when better performing paths exist, leading to suboptimal network performance.

Conventional technologies in the dynamically routed internet field primarily operate at the Network Layer (Layer 3) by selecting a best path for traffic based on shortest path. The conventional technologies also do not take into account the network degradation condition. Related technologies in the Virtual Private Networking (VPN) provide protection from eavesdropping but do not route around degraded network paths.

There is therefore a need for computer network technologies with improved transmission speed, more security, and higher reliability (less data loss, less jitters, etc.).

SUMMARY OF THE INVENTION

In one general aspect, the present invention relates to a method for autonomous selection of a data routing path in a computer network, that includes: forming a pulse group comprising a plurality of nodes in a computer network, automatically sending a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group, receiving one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages can include a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages can be received at a reception time associated with a second time stamp, automatically computing a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp, automatically recording one-way latencies between each pair of nodes in the pulse group in a one-way latency matrix, wherein the one-way latencies includes the first one-way latency, and automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path can include at least a third node in the pulse group, wherein the low-latency data routing path has a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.

Implementations of the method may include one or more of the following. The first one-way latency from the first node to the second node can be automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node. The first node can be installed with a first computer logic, wherein the method can further include storing a sending time stamp in a first pulse message by the first computer logic, the sending time stamp being based on a clock of a local computer at the first node; and sending the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic. The first node can be installed with a second computer logic, wherein the method can further include receiving a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extracting a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; recording a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculating a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp. At least some computer clocks at the plurality of nodes in the pulse group can have skews relative to each other, wherein automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group. The pulse group can be initiated by one of the plurality of nodes as a genesis node, wherein the method can further include inviting nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group. The pulse group can be formed by a host computer node connected to the Internet, wherein a node joins the pulse group by connecting to one of the plurality of nodes in the pulse group over the Internet. The plurality of pulse messages can be formed by single data packets. The low-latency data routing path can have a total latency defined by a sum of one-way latencies from the first node to the third node and from the third node to the second node.

In another general aspect, the present invention relates to a non-transitory computer-readable medium storing a plurality of instructions which, when executed by one or more processors, cause the one or more processors to perform operations a computer network. The operations include: forming a pulse group comprising a plurality of nodes in the computer network, automatically sending a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group, receiving one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages can include a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages can be received at a reception time associated with a second time stamp, automatically computing a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp, automatically recording one-way latencies between each pair of nodes in the pulse group in a one-way latency matrix, wherein the one-way latencies can include the first one-way latency, and automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path includes at least a third node in the pulse group, wherein the low-latency data routing path can have a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.

Implementations of the non-transitory computer-readable medium may include one or more of the following. The first one-way latency from the first node to the second node can be automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node. The first node can be installed with a first computer logic, wherein the operations performed by the one or more processors can further include storing a sending time stamp in a first pulse message by the first computer logic, the sending time stamp being based on a clock of a local computer at the first node; and sending the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic. The first node can be installed with a second computer logic, wherein the operations performed by the one or more processors can further include receiving a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extracting a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; recording a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculating a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp. At least some computer clocks at the plurality of nodes in the pulse group can have skews relative to each other, wherein automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group. The pulse group can be initiated by one of the plurality of nodes as a genesis node, wherein the operations performed by the one or more processors can further include inviting nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group. The pulse group can be formed by a host computer node connected to the Internet, wherein a node joins the pulse group by connecting to one of the plurality of nodes in the pulse group over the Internet. The plurality of pulse messages can be formed by single data packets. The low-latency data routing path can have a total latency defined by a sum of one-way latencies from the first node to the third node and from the third node to the second node.

In another general aspect, the present invention relates to a computer system for providing autonomous selection of a data routing path in a computer network, that includes: a server that can send instructions to a plurality of nodes in a computer network and a memory storing the instructions that, when executed by the one or more processors at the plurality of nodes, can cause the plurality of nodes to: form a pulse group comprising a plurality of nodes in the computer network, automatically send a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group; receive one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages can include a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages is received at a reception time associated with a second time stamp, automatically compute a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp, automatically record, in a one-way latency matrix, one-way latencies between each pair of nodes in the pulse group, wherein the one-way latencies can include the first one-way latency, and automatically determine a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path can include at least a third node in the pulse group, wherein the low-latency data routing path has a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.

Implementations of the computer system may include one or more of the following. The first one-way latency from the first node to the second node can be automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node. The first node can be installed with a first computer logic, wherein the instructions can further cause the plurality of nodes to store a sending time stamp in a first pulse message by the first computer logic, the sending time stamp being based on a clock of a local computer at the first node; and sending the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic. The first node can be installed with a second computer logic, wherein the method can further include receiving a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extracting a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; recording a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculating a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp. At least some computer clocks at the plurality of nodes in the pulse group can have skews relative to each other, wherein automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group. The pulse group can be initiated by one of the plurality of nodes as a genesis node, wherein cause the plurality of nodes to invite nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group. The pulse group can be formed by a host computer node connected to the Internet, wherein a node joins the pulse group by connecting to one of the plurality of nodes in the pulse group over the Internet. The plurality of pulse messages can be formed by single data packets. The low-latency data routing path can have a total latency defined by a sum of one-way latencies from the first node to the third node and from the third node to the second node.

The present disclosure describes a collection of distributed computer systems connected over an Internet that acts as a single autonomous cryptographically-secured overlay relay network. A collection of control and pulse messages exchanged between computers can dynamically form the computers into optimal groupings called Pulse Groups. One-way packet latencies are continually measured between nodes within a Pulse Group (i.e. public Internet or private Internet). The continual measurements create a distributed full-mesh one-way latency matrix that is shared with all the nodes in the Pulse Group.

The disclosed systems, non-transitory computer-readable medium, and methods identify where a better performing encrypted network path exists through an intermediary relay node based on the distributed full-mesh one-way latency matrix. Public cryptographic keys are propagated across potential relay nodes and endpoints. The end systems can bypass their network providers' direct route to route their communications via a better performing encrypted application-layer path. The better performing network path via one or more relay nodes has lower latency, loss, jitters, etc. than the direct path between the end systems.

Machine learning and heuristics can be used to dynamically form a node group (i.e. Pulse Group) to accommodate fluctuations in offered network load. One-way packet latencies are autonomously and continually measured in both directions between each pair of nodes within a Pulse Group.

One advantage of the disclosed systems, non-transitory computer-readable medium, and methods is that their operations can measure and find the faster path between any internet-connected computers without the requirement of clock synchronization.

Another advantage of the disclosed systems and methods is that more secure communications can be provided by “spraying” data traffic across similar latency paths to increase the difficulty of capturing encrypted traffic for off-line analysis.

By managing the population of Pulse Groups, the disclosed systems and methods provide a buffer to the overall network load. Whenever or wherever a computer network is overburdened with traffic and experiencing high latencies, the disclosed systems and methods can autonomously identify alternative routing path and alleviate the traffic latency or congestion, which result in more consistent and reliable in the network's performance.

Moreover, the disclosed systems and methods can provide a more reliable data communications over a network. An end-system experiencing high packet loss can spray the same packet continuously across available paths, to maximize the chance of one of the packets make it through to the destination of the communication.

Furthermore, a simple directory service can facilitate the establishment and validation of secure end-to-end network connections in a global computer network.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A shows a protocol-instruction provider computer system that provides codes for the formation and autonomous operations of Pulse Groups in a computer network in accordance with some embodiments of the present invention.

FIG. 1B illustrates connections and latency measurements between the computer nodes in a Pulse Group in accordance with some embodiments of the present invention.

FIG. 2 shows an exemplified one-way latency (OWL) matrix that includes measured OWL values from each pair of nodes in a Pulse Group and the selection of better performing data routing paths in accordance with some embodiments of the present invention.

FIG. 3 depicts an exemplified schematic diagram showing multiple Pulse Groups having updated OWL matrices within and between Pulse Groups for providing global directory service in accordance with some embodiments of the present invention.

FIG. 4 shows an exemplified directory for the Pulse Groups shown in FIG. 3.

FIG. 5 is a flowchart showing the formation and operation of Pulse Groups in accordance with some embodiments of the present invention.

FIG. 6 illustrates detailed operations at a node in a Pulse Group in accordance with some embodiments of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

To overcome the problems faced by the conventional network routing technologies, the present invention provides a decentralized system that continually measures latencies in the computer network and can dynamically determine better performing paths between nodes in the computer network based on the up-to-date measured latencies.

In some embodiments, referring to FIGS. 1A and 1B, a protocol-instruction provider system 105 includes a server 190, a computer memory 192, and a processor 195, which is in connection with a computer network 100 via the Internet. The computer network 100 includes a collective of interconnected computers or nodes 110-150. The computer memory 192 stores computer codes that include instructions that define a distributed autonomous routing protocol, which enable nodes in the computer network 100 to form a group for continual measurements of data-transmission latencies and for determining better performing data routing pathways among a group nodes such as nodes 110-150.

The nodes 110-150 can receive the above described computer codes that contain the instructions via download. The node 110 can include a computer memory 115 that stores the computer codes and a processor 117 that executes the computer codes and implement instructions under the distributed autonomous routing protocol. Once the computer codes are installed on the respective computers, the nodes 110-150 are formed into a Pulse Group 160 according to the distributed autonomous routing protocol, which establishes secure communications among the nodes 110-150 in the Pulse Group 160.

The protocol-instruction provider system 105 can be a private service provider that originally develops the distributed autonomous routing protocol. In some embodiments, the computer codes can be implemented as dockers that are installed at each of the node computers within a Pulse Group. The dockers enable compartmentalization of the node computers, which allows the instructions for the distributed autonomous routing protocol to be executed without interfering with other operations of the node computers. The protocol-instruction provider system 105 can be responsible for managing and updating versions of the dockers. To ensure proper operations, all the nodes 110-150 will run the same version of the computer codes to execute the instructions for the distributed autonomous routing protocol. In some embodiments, the above described computer codes are distributed and updated using encrypted software.

The protocol-instruction provider system 105 can also include a file repository system that is private or open to the public. In a public file repository, the original computer codes are provided by the entity that develops or establishes the distributed autonomous routing protocol. A portion of the computer codes can be contributed by many users or agents in the form of open source. Publically contributed codes can help the expansion and applications of pulse groups and the reach of faster and more reliable network routing. The protocol-instruction provider system 105 can further include a commercial service provider that facilitates formation and/or maintenance of the Pulse Groups, and identification of better performing routing paths between nodes.

Under the instructions of the distributed autonomous routing protocol in the installed computer codes, the nodes 110-150 continually send pulse messages comprising the nodes' state information to each other in peer-to-peer connections 180. The state information includes a time stamp associated with the sending time of a pulse message sent by a particular node (e.g. 110) in the Pulse Group 160. In the present disclosure, the tem “pulse message” refers to the messages regularly sent between peer nodes in a common Pulse Group. Optionally, the state information can also include reception time stamps of the pulse messages previously received by the particular node (e.g. 110) from other nodes (i.e. 120-150).

One-way latencies are calculated by subtracting the reception time stamp by the sending time stamp of each pulse message in a uni-direction between a pair of nodes in the Pulse Group 160. In a Pulse Group comprising an integer n number of nodes, n*(n−1) number of one-way latencies are continually measured and calculated for the Pulse Group. The One-Way Latencies (OWL) can be calculated by receiver nodes and shared with all members of a Pulse Group 160. Specifically, each node can be responsible for updating the OWL values of the one way communications received by that node. For example, referring to FIG. 2, the node D is responsible for updating the OWL values in the column “To D” in the OWL matrix 200.

The pulse messages can be light weight and adds very little traffic overhead to the computer network. In some embodiments, each of the pulse messages can include a single data packet that contains the state information such as the first time stamp. The state information contained in pulse messages can be used for measurement purposes, that is, for recording time stamps and for calculating latencies. In some embodiments, as described below in conjunction with FIG. 6, pulse messages can carry information for other operations of the pulse groups as well as for applications.

All the measured one-way latencies within the Pulse Group 160 are reported by the nodes 110-150 to the Pulse Group 160. The measured OWL values are combined and tabulated in OWL matrices (or OWL tables) 115, 125, 135, 145, 155, which are stored in computer memories of the nodes 110-150. The OWL matrices (or OWL tables) 115, 125, 135, 145, 155 are continually updated using the latest measured OWL values and shared among the nodes 110-150 in the Pulse Group 160. Thus each node 110-150 has a full-mesh real-time one-way latency matrix within its Pulse Group 160.

The computer network 100 can include a public network, or a private network, or a combination of both. In a public network, once a host computer node sets up a Pulse Group, any node in the public network (e.g. the Internet) can connect to one of the nodes in the Pulse Group by receiving the computer codes containing the distributed autonomous routing protocol to join the pulse group. In a private network, one genesis node (such as node 110 in FIGS. 1A and 1B) starts a Pulse Group by inviting a few nodes to join a Pulse Group. As shown in FIG. 1A, the genesis node such as node 110 includes the computer memory 115 that stores the computer codes and the processor 117 that executes the computer codes and implements instructions under the distributed autonomous routing protocol. The genesis node is part of the Pulse Group and it manages the population in its Pulse Group such as additions of nodes to the Pulse Group and deletions of nodes from the Pulse Group.

An important advantage of the presently disclosed system and method is that no clock synchronization is required among the nodes 110-150 in the Pulse Group 160. The clocks of the nodes 110-150 can have significant skew or offsets from each other, which will not affect the determination and the selection of the better routing paths among the nodes 110-150 in the Pulse Group 160.

In some embodiments, referring to FIG. 2, measured one-way latency values in a Pulse Group comprising nodes A-E are tabulated in a distributed full-mesh OWL matrix 200. The one way latencies from each of the five nodes A-E to other nodes result in 20 latency values (n(n−1), wherein the exemplified n number of nodes in the Pulse Group is 5) in the OWL matrix 200. For examples, the latencies from node A, node B, node C and node E to node D are respectively 51, 53, 100, and 25 (msec.); the latencies from node C to node A, node B, node D and node E are respectively 50, 34, 100, and 91 (msec.). As discussed above, in one implementation, the OWL values in column “To A” are calculated and updated by node A; the OWL values in column “To B” are calculated and updated by node B, and so on. Moreover, latencies between two nodes can be different in forward and reverse directions. For example, the latency from node C to node D is 100 msec. and the latency from node D to node C is 85 msec.

It should be noted that the latency numbers, the number of nodes with a Pulse group, the number of Pulse groups, and specific exemplified configurations in FIGS. 1A-6 are used only for the purpose of illustrating the disclosed systems and methods, which should not limit the scope of the disclosed invention.

It should be further noted that the OWL values in the OWL matrix 200 are raw latency values derived from measured timestamps of the different node computers that are generally not synchronized. These raw latency values can be positive or negative, and the values can be significantly different from the true latency values measured between nodes having synchronized clocks.

In some embodiments, the OWL matrix 200 can be used as a routing table for determining a better performing path between two nodes within the Pulse Group. The distributed autonomous routing protocol contained in the computer codes downloaded from the protocol-instruction provider system 105 enables autonomous calculations and determinations of better performing paths within the Pulse Group. In one aspect, the better performing data routing path is measured by the lower or the lowest total latency from the sending node, via one or more relay or intermediary nodes, to the destination node. The total latency is the sum of the latencies of all node-to-node transmission segments along the routing path.

From the OWL matrix 200, the direct routing path (i.e. the shortest path) from node C to node D, which is recommended by a conventional centralized Internet protocol-instruction provider, has a latency of 100 msec. In contrast, the presently disclosed systems and methods can improve the performance of the data routing from node C to node D by allowing additional intermediary or relay nodes between node C and node D. Using the OWL matrix 200, the presently disclosed methods explore and evaluate total latencies along other possible routing paths. For example, the path from node C to node A then from node A to node D has a total latency of 50+51=101 msec.; the path from node C to node E then from node E to node D has a total latency of 91+25=116 msec. Two above alternative paths would result in slower data transmissions, which are not good alternatives to the direct path. A better performing path is found using node B as a relay node: the segments of node C to node B and then from node B to node D have a combined latency value of 34+53=87 msec., which is below the 100 msec. latency value of the direct path from node C to node D. Thus the path using node B in the Pulse Group as a relay node provides decreased latency comparing to conventional methods. In some embodiments, a better performing path can also include two or more relay nodes between the sending node and the destination node.

In the above example, the better performing routing path is independent of clock skews. For example, if the clock at node D is skewed by minus 50 msec., the latencies from node A, node B, node C and node E to node D would now be respectively 1, 3, 0, and −25 (msec.); the latency values in the column to node D are all shifted down by 50 msec. The better performing routing path from node C to node D will still be from node C to node B, then from node B to node D because all alternative paths have their respective summed latency values all shifted down by the same amount (i.e. 50 msec. of latency time). It should be noted that negative latency values are allowed in the OWL matrix, which do not affect the determination of the better performing routing paths as described above.

In some embodiments, referring to FIGS. 3 and 4, a plurality of Pulse Groups 310-350 can exchange their respective OWL matrices 315-355 to provide a global directory for all the nodes in the Pulse Groups 310-350. The form of the global directory is a partial mesh OWL matrix 400 as shown in FIG. 4. The partial mesh OWL matrix 400 is a table of OWL matrices 315-355, which can be used as the basis for algorithmic dynamic Pulse Group creation and for latency-based routing decisions.

For example, when a node A in Pulse Group 310 is attempting to send data to node B in Pulse Group 320, node A knows the public key of the destination node B and will inquire about node B at its genesis node in Pulse Group 310. The genesis node in Pulse Group 310 communicates with other Genesis nodes of the other Pulse Groups 320-350. Each of those Genesis nodes searches for the public key in their respective groups. The genesis node of Pulse Group 320 identifies node B using the public key and notifies the genesis node of Pulse Group 310 and node A.

To establish latency measurements between Node A and Node B, the genesis node of Pulse Group 320 can invite node A to join Pulse Group 320. The OWL matrix 325 is updated with latencies from and to node A, which allows calculations and determination of a better performing path from node A to node B. Alternatively, a new group can be formed that includes a hybrid of Pulse Group 310 and Pulse Group 320. The new group includes node A and node B as well as some or all other nodes previously in the two groups. An OWL matrix is established and updated as described above. A better performing path can be determined from node A to node B. It should be noted that the nodes in Pulse Group 310 and Pulse Group 320 can join the new group while still staying in their respective original pulse groups. In other words, each node can simultaneously join multiple pulse groups.

In some embodiments, the formation and operations of Pulse Groups can include one or more of the following steps. Referring to FIG. 5, a pulse group that includes a plurality of nodes in a computer network is formed (step 510). As described above, the plurality of nodes can first receive computer codes from a protocol-instruction provider system. Once executed by nodes' respective computer processors (e.g. 117 in FIG. 1), instructions from the codes establish secure communications among the nodes. Pulse messages (or pulse messages) are automatically sent between nodes in the Pulse Group (step 520). The pulse message automatically sent from a first node to a second node in the pulse group (step 520) includes a first time stamp associated with the sending time of the specific pulse message. The pulse message is received by the second node at a reception time associated with a second time stamp (step 530).

Next, a one-way latency from the first node to the second node is automatically calculated based on the first time stamp and the second time stamp (step 540). In one implementation, the one-way latency from the first node to the second node is automatically calculated by the computer at the second node by subtracting the second time stamp by the first time stamp.

In some embodiments, the pulse message sent by a first node can further include reception times of the pulse messages previously received by the first node from other nodes in the Pulse Group. In this way, each node in the Pulse Group will have the first time stamp and the second time stamp of the pulse messages in both directions between that node and other nodes in the Pulse Group. The availability of the first time stamp and the second time stamp to the sending and the receiving nodes of the pulse messages allow the nodes to independently calculate latencies in both sending and receiving directions. The redundant calculations of the one-way latencies can serve as validation of OWL in the Pulse Group and ensure reliability of the OWL data in the OWL matrix.

The one-way latencies in both forward and reverse directions between each pair nodes in the Pulse Group are automatically recorded in a one-way latency matrix (step 550) by the nodes in the Pulse Group. These measured values are latencies for the direct paths between nodes in the Pulse Group. Specifically, the one-way latency from the first node to the second node in the one-way latency matrix can be updated by the second node after it calculates the updated one-way latency value as described above.

The OWL matrix is continually updated and shared in real time among all the nodes in the Pulse Group. For example, pulse messages can be sent by each node in the Pulse Group at a regular 1 second interval for the continued OWL measurements.

Using the one-way latencies updated in real time in the OWL matrix, a better performing data routing path with a lower latency from the first node to the second node can be automatically calculated (step 560). The better performing data routing path can include a relay node, a first transmission segment for the first node to the third node, and a second transmission segment for the third node to the second node. In some embodiments, there could be more than one relay node in the better performing data routing path. The total sum of latencies in all the segments in the better performing data routing path is lower than the latency of the direct path from the first node to the second node.

By managing the population of Pulse Groups, the disclosed systems and methods provide a buffer to the overall network load. Whenever or wherever a computer network is overburdened with traffic and experiencing high latencies, the disclosed systems and methods can autonomously identify alternative routing path and alleviate the traffic latency or congestion, which result in more consistency and reliability in the network's performance.

Details of the operations of Pulse Groups (steps 510-560 in FIG. 5) are now described. The computer codes downloaded from the protocol-instruction provider system 105 and stored in the memory of each of the nodes in a Pulse Group (FIGS. 1 and 2) includes the same instructions and configuration information (i.e. defined by the distributed autonomous routing protocol) to be run on the nodes in the Pulse Groups. Once installed, the nodes in the same Pulse Group are instantly connected to other nodes in the Pulse Group over a secure connection.

As shown in FIGS. 1A and 1B, a node (e.g. 110) in a Pulse Group receives computer codes from a protocol-instruction provider system 105, which are installed on the node computer. Referring to FIG. 6, the installed software enables the node computer to perform at least two logic functions: 1) pulse logic 610 for sending pulse messages to communicate state information to peer nodes in the same Pulse Group; and 2) Pulse Handle logic 620 processing pulse messages: processes pulse messages (i.e. pulses) received from peer nodes within the Pulse Group.

The node computer stores a Pulse Group Configuration table 630 and a Latency measurement Table 640 among other information that the node computer can store related to implementing the distributed autonomous routing protocol. The Pulse Group Configuration table 630 includes information about the nodes in the Pulse Group: public keys, public IP addresses, and public ports for each node in the Pulse Group. The information in this table ensures connections and communications between peer nodes in the same Pulse Group. For each message received by node 110, the Latency measurement Table 640 lists the first time stamp (i.e. the sending time recorded by the sending node), the second time stamp (i.e. the reception time recorded by the receiving node), and the one-way latency (OWL) calculated from the two time stamps.

Using the information in the Pulse Group Configuration table 630, the Pulse Logic 610 regularly sends out pulse messages to peer nodes in the same Pulse Group (using a public key to a specific node at a specific public IP address via the specified public port). In each such pulse message, the Pulse Logic 610 records a time stamp according to the timer or the local clock of the node computer at node 110 and stores the time stamp in that pulse message. The time stamp serves as the first or the sending time stamp of the associated pulse message, which the node that receives the particular pulse message can use to calculate the one-way latency time.

As discussed above, pulse messages can generally include information for operations of the pulse groups as well as for applications. Information for operations can include state information that is used for measurement purposes, that is, for recording time stamps and for calculating latencies. In some embodiments, pulse messages can carry information for identifying and communicating with the nodes in the same Pulse Group. Pulse messages can also include other information that ensures consistent operations of the Pulse Groups such as latency measurements and routing path selections such as software version of the computer codes and/or docker version shared between nodes for executing the distributed autonomous routing protocol. All the nodes in a Pulse Group need to run the same version of software for the proper operations with the Pulse Group.

The Pulse Handle logic 620 can receive different types of messages. When a new node joins the Pulse Group, the Pulse Handle logic 620 receives information (i.e. the public key, the public IP address, and the public port for the new node) that instantiates the Pulse Group, and add the information the Pulse Group Configuration table 630 (a new row for the node in 630).

Corresponding to the messages sent out, node 110 regularly receives pulse messages from peer nodes in the same Pulse Group. These received messages are also handled by Pulse Handle logic 620. For each received message, the Pulse Handle logic 620 records a second or a reception time stamp based on the timer or the clock of the local node computer. Pulse Handle logic 620 extracts the first (sending) time stamp from the received pulse message and records both the first time stamp and the second time stamp in the Latency measurement Table 640 for that message (e.g. message 1). Pulse Handle logic 620 then calculates a one-way latency (OWL) based on the first time stamp and the second time stamp. In one implementation, OWL is obtained by subtracting the first time stamp from the second time stamp. It should be noted, as described above, that the timer or the computer clock on node 100 may not be synchronized with the clocks on peer nodes in the same Pulse Group. The clocks of the peer nodes can be skewed, or offset, such that the absolute OWL values may be different from the real latencies experienced in data transmission. The synchronicity however does not affect the determination of the better routing path.

As the OWL values are calculated from the received pulse messages, Pulse Handle logic 620 updates and records the current OWL values in the OWL matrix 200. In the specific configuration shown in OWL 200 (FIG. 2), Pulse Handle logic 620 in node 110 is responsible for updating a column of the OWL values, which includes latency values for the one-way messages received from different peer nodes in the same group. As discussed above in relation to FIGS. 2 and 5, better performing data routing paths can be determined using the most updated OWL matrix 200.

The above embodiments are only used to illustrate the technical solution of the present invention but not to limit it. Those skilled in the art can modify or equivalently replace the technical solution of the present invention without departing from the spirit and scope of the present invention. The scope of protection shall be subject to the claims. 

What is claimed is:
 1. A method for autonomous selection of a data routing path in a computer network, comprising: forming a pulse group comprising a plurality of nodes in a computer network; automatically sending a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group; receiving one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages includes a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages is received at a reception time associated with a second time stamp; automatically computing a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp; automatically recording, in a one-way latency matrix, one-way latencies between each pair of nodes in the pulse group, wherein the one-way latencies includes the first one-way latency; and automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path includes at least a third node in the pulse group, wherein the low-latency data routing path has a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.
 2. The method of claim 1, wherein the first one-way latency from the first node to the second node is automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node.
 3. The method of claim 1, wherein the first node is installed with a first computer logic, the method further comprising: storing a sending time stamp in a first pulse message by the first computer logic, the sending time stamp being based on a clock of a local computer at the first node; and sending the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic.
 4. The method of claim 1, wherein the first node is installed with a second computer logic, the method further comprising: receiving a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extracting a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; recording a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculating a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp.
 5. The method of claim 1, wherein at least some computer clocks at the plurality of nodes in the pulse group have skews relative to each other, wherein automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group.
 6. The method of claim 1, wherein the pulse group is initiated by one of the plurality of nodes as a genesis node, the method further comprising: inviting nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group.
 7. The method of claim 1, wherein the pulse group is formed by a host computer node connected to the Internet, wherein a node joins the pulse group by connecting to one of the plurality of nodes in the pulse group over the Internet.
 8. The method of claim 1, wherein the plurality of pulse messages are formed by single data packets.
 9. The method of claim 1, wherein the low-latency data routing path has a total latency defined by a sum of one-way latencies from the first node to the third node and from the third node to the second node.
 10. A non-transitory computer-readable medium storing a plurality of instructions which, when executed by one or more processors, cause the one or more processors to perform operations a computer network, the operations comprising: forming a pulse group comprising a plurality of nodes in the computer network; automatically sending a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group; receiving one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages includes a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages is received at a reception time associated with a second time stamp; automatically computing a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp; automatically recording, in a one-way latency matrix, one-way latencies between each pair of nodes in the pulse group, wherein the one-way latencies includes the first one-way latency; and automatically determining a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path includes at least a third node in the pulse group, wherein the low-latency data routing path has a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.
 11. The non-transitory computer-readable medium of claim 10, wherein the first one-way latency from the first node to the second node is automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node.
 12. The non-transitory computer-readable medium of claim 10, wherein the first node is installed with a first computer logic, wherein the operations performed by the one or more processors to further comprises: storing a sending time stamp in a first pulse message by the first computer logic, the sending time stamp based on a clock of a local computer at the first node; and sending the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic.
 13. The non-transitory computer-readable medium of claim 10, wherein the first node is installed with a second computer logic, wherein the operations performed by the one or more processors to further comprises: receiving a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extracting a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; recording a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculating a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp.
 14. The non-transitory computer-readable medium of claim 10, wherein at least some computer clocks at the plurality of nodes in the pulse group have skews relative to each other, wherein the automatically determined low-latency data routing path from the first node to the second node is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group.
 15. The non-transitory computer-readable medium of claim 10, wherein the pulse group is initiated by one of the plurality of nodes as a genesis node, wherein the operations performed by the one or more processors to further comprises: inviting nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group.
 16. A computer system for providing autonomous selection of a data routing path in a computer network, comprising: a server configured to send instructions to a plurality of nodes in a computer network; and a memory storing the instructions that, when executed by the one or more processors at the plurality of nodes, cause the plurality of nodes to: form a pulse group comprising a plurality of nodes in the computer network; automatically send a plurality of pulse messages from a first node in the pulse group to other nodes in the pulse group; receive one of the plurality of pulse messages by a second node in the pulse group, wherein the one of the plurality of pulse messages includes a first timestamp associated with sending time by the first node, wherein the one of the plurality of pulse messages is received at a reception time associated with a second time stamp; automatically compute a first one-way latency for a direct path from the first node to the second node based on the first time stamp and the second time stamp; automatically record, in a one-way latency matrix, one-way latencies between each pair of nodes in the pulse group, wherein the one-way latencies includes the first one-way latency; and automatically determine a low-latency data routing path from the first node to the second node based on the one-way latencies in the one-way latency matrix, wherein the data routing path includes at least a third node in the pulse group, wherein the low-latency data routing path has a lower sum of one-way latencies from the first node to the second node via the third node than the first one-way latency.
 17. The computer system of claim 16, wherein the first one-way latency from the first node to the second node is automatically computed at the second node, wherein the first one-way latency is automatically updated in the one-way latency matrix by the second node.
 18. The computer system of claim 16, wherein the first node is installed with a first computer logic, wherein the instructions that, when executed by the one or more processors at the plurality of nodes, further cause the plurality of nodes to: store a sending time stamp in a first pulse message by the first computer logic, the sending time stamp based on a clock of a local computer at the first node; and send the first pulse message to at least one of the nodes in the Pulse Group by the first computer logic.
 19. The non computer system of claim 16, wherein the first node is installed with a second computer logic, wherein the instructions that, when executed by the one or more processors at the plurality of nodes, further cause the plurality of nodes to: receive a second pulse message from one of the nodes in the Pulse Group by the second computer logic; extract a sending time stamp in the second pulse message, wherein the sending time stamp is based on a first clock of a local computer at the one of the nodes in the Pulse Group; record a reception time stamp associated with the reception of the second pulse message, wherein the reception time stamp is based on a second clock at the first node; and automatically calculate a one-way latency from the one of the nodes in the Pulse Group to the first node based on the sending time stamp and the reception time stamp.
 20. The computer system of claim 16, wherein at least some computer clocks at the plurality of nodes in the pulse group have skews relative to each other, wherein the automatically determined low-latency data routing path from the first node to the second node is independent of the skews between the some of the computer clocks at the plurality of nodes in the pulse group.
 21. The computer system of claim 16, wherein the pulse group is initiated by one of the plurality of nodes as a genesis node, wherein the instructions that, when executed by the one or more processors at the plurality of nodes, further cause the plurality of nodes to: invite nodes in the plurality of nodes by the genesis node to connect to the genesis node to form the pulse group. 